package com.ds.infrastructure.hyperspace.console.dao.mapper;

import com.ds.infrastructure.hyperspace.console.entity.page.TbPageWhere;
import com.ds.infrastructure.hyperspace.console.entity.table.TbNodeMetricsAggregation;
import com.ds.infrastructure.hyperspace.console.entity.table.TbResultMap;
import com.ds.infrastructure.hyperspace.console.entity.where.TbCustomWhere;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author: yaozhendong
 * @create: 2019-11-01 15:33
 **/

public interface TbNodeMetricsAggregationMapper {
    int insertSelective(TbNodeMetricsAggregation record);

    TbNodeMetricsAggregation selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(TbNodeMetricsAggregation record);

    //自定义接口===========================================
    List<TbNodeMetricsAggregation> selectListForPage(@Param("pojo") TbNodeMetricsAggregation where, @Param("mapWhere") TbCustomWhere mapWhere, @Param("pageWhere") TbPageWhere pageWhere);

    int selectListForPageCount(@Param("pojo") TbNodeMetricsAggregation where, @Param("mapWhere") TbCustomWhere mapWhere);

    int insertList(@Param("pojos") List<TbNodeMetricsAggregation> pojo);

    List<TbResultMap> sumRequestSecondsCount(@Param("mapWhere") TbCustomWhere mapWhere);

    //物理删除
    int delete(@Param("mapWhere") TbCustomWhere mapWhere);
}
